How to process <input type="file" name="test1[f]" /> in PHP?

Posted by user198729 on Stack Overflow See other posts from Stack Overflow or by user198729
Published on 2010-03-13T15:41:46Z Indexed on 2010/03/13 15:45 UTC
Read the original article Hit count: 241

Filed under:
|
|
|

var_dump($_FILES) gives the following:

array
  'test1' => 
    array
      'name' => 
        array
          'f' => string 'ntuser.dat.LOG' (length=14)
      'type' => 
        array
          'f' => string 'application/octet-stream' (length=24)
      'tmp_name' => 
        array
          'f' => string 'D:\wamp\tmp\php223.tmp' (length=22)
      'error' => 
        array
          'f' => int 0
      'size' => 
        array
          'f' => int 0

Why is http designed this way?How can I get the file by $_FILES['test1']['f']?

© Stack Overflow or respective owner

Related posts about http

Related posts about file